package com.mxfcode.front.bbs_plate.service.impl;


import com.mxfcode.entity.BBSPlate;
import com.mxfcode.front.bbs_plate.mapper.PlateMapper;
import com.mxfcode.front.bbs_plate.service.PlateService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PlateServiceImpl implements PlateService {

    private static final Logger logger = LoggerFactory.getLogger(PlateServiceImpl.class);

    @Resource
    private PlateMapper plateMapper;

    @Override
    public int selectPlateRows(int status) {
        return plateMapper.selectPlateRows(status);
    }

    @Override
    public List<BBSPlate> selectPlateList(int offset, int limit) {
        return plateMapper.selectPlateList(offset,limit);
    }

    @Override
    public BBSPlate selectPlateById(String id) {
        return plateMapper.selectPlateById(id);
    }
}
